<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<%@ page import="java.util.List"%>
<%@ page import="java.util.List"%>
<%@ page import="biblioteca.persistencia.*"%>
<%@ page import="biblioteca.dao.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>LISTADO</title>
       
        <script language=" JavaScript" type="text/javascript">

            function comprobarbusqueda(){
                var p= document.getElementsByName("palabra");
                if(p[0].value == 0){
                 alert("introduce una palabra");
             }
            }
        </script>
    </head>
    <body>
        
        
        <fieldset style="border: 2px solid black">
            <form action="/busqueda" method="get">
                Buscar:<input type="text" name="palabra"/>
                       <input type="submit" value="Enviar" onclick="comprobarbusqueda()" />
                       <input type="button" value="Volver" onclick="history.back()">
            </form>
        </fieldset>
        
        
    </body>
</html>